﻿<local:DocumentBase x:Class="WPFExcelReport.YGRABFB"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"  
                    xmlns:VA="clr-namespace:WPFExcelReport;assembly=TVAART"
                    xmlns:VF="clr-namespace:WPFExcelReport;assembly=TVAFARBEN"
                    xmlns:GD="clr-namespace:WPFExcelReport;assembly=TGAAUF" 
                    xmlns:VKK="clr-namespace:WPFExcelReport;assembly=TVKKOPF" 
                    xmlns:VKP="clr-namespace:WPFExcelReport;assembly=TVKPOS" 
                    xmlns:MU="clr-namespace:WPFExcelReport;assembly=TABAUFM" 
                    xmlns:AB="clr-namespace:WPFExcelReport;assembly=TABPOS" 
                     xmlns:MB="clr-namespace:WPFExcelReport;assembly=TGABEW"  
                    xmlns:ZU="clr-namespace:WPFExcelReport;assembly=TZUTEI" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"   
                     xmlns:TXT="clr-namespace:WPFExcelReport;assembly=TTXTIND"        
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
                    xmlns:WF="clr-namespace:WPFExcelReport;assembly=TICC_WFEVENTS"  
                     xmlns:me="clr-namespace:WPFExcelReport"
                    Name="TV"
                    MinHeight="200"
                    MinWidth="200"
                   Loaded="Window_Loaded"
>
    <local:DocumentBase.Resources>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:NOTConverter x:Key="not"/>
    </local:DocumentBase.Resources> 
  <TabControl> 
        <TabItem Header="复版管理"> 
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition   Height="Auto" />
                        <RowDefinition   Height="1*" />
                        <RowDefinition   Height="Auto" />
                    <RowDefinition   Height="Auto" />
                </Grid.RowDefinitions>
                <StackPanel >
                    <TextBlock Text="{Binding DES,ElementName=cVK05}"/>
                    <Expander ExpandDirection="Down">
                        <Expander.Header>
                            <WrapPanel>
                                <TextBlock Text="复板备注:"/>
                                <TextBlock Text="{Binding INFO,ElementName=cTxt,Converter={StaticResource gb2312}}"/>
                            </WrapPanel>
                        </Expander.Header>
                        <Grid Grid.Row="1" Grid.Column="1" >
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="1*"/>
                            </Grid.RowDefinitions>
                            <TXT:TXTITXBOX Grid.Row="1" Margin="0,0,0,0"  HorizontalAlignment="Left"
                                           Name="cTxt"
                                 TART="VFB"
                                IsInfoOneLine="True"
                                IsTXTBox="True"
                                SIND="{Binding TXTISIND,ElementName=cVK05}"    
                                TXTWIDTH="800"
                                  TXTHIGHT="40" 
                                 VerticalAlignment="Top"/>
                        </Grid>
                    </Expander>
                </StackPanel>
                    <VKP:TPFBVK03  Grid.Row="1"  Grid.Column="0"   
                       Name="cVK05"  
                       IsGD="{Binding IsGD,ElementName=TV}" 
                        IsPrice="False" 
                       ARTST="G"  
                       IsOrder="False"
                       IsVV="False"/>
                    <Expander   IsExpanded="False"  Grid.Row="2" Name="ZoneFB">
                        <Expander.Header>
                            <WrapPanel>
                                <TextBlock Text="复版单/生产单:"/>
                                <TextBlock Text="{Binding KEY,ElementName=cCS}"/>
                                <TextBlock Text="--展开有明细，但会影响速度"/>
                            </WrapPanel>
                        </Expander.Header>
                        <Grid >
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="1*"></ColumnDefinition>
                                <ColumnDefinition Width="1*"></ColumnDefinition>
                                <ColumnDefinition Width="2*"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Border  Grid.Column="0" Visibility="{Binding IsGD,ElementName=TV,Converter={StaticResource nbv}}" 
                                        BorderBrush="DarkGray" BorderThickness=".0,.0,2,2" CornerRadius="11"  >
                                <Border BorderBrush="White" BorderThickness="5" CornerRadius="8" >
                                    <Border BorderBrush="Black" BorderThickness="1.5" CornerRadius="8">
                                        <GD:TGD610  
                                            Name="cGD"
                                            FTAUTOGA="True"
                                            AUFTYP="K"                     
                                            IsNewEnabled="True"  
                                            ARTSTAGE="S"  
                                            POSTYP="VK "
                                            IsEdit="{Binding IsEdit,ElementName=cVK05}" 
                                            ORDERNUM="{Binding KEY,ElementName=cVK05}" 
                                            IsVV="{Binding IsVV,ElementName=cVK05}"
                                             IsOrder="True"
                                            />
                                    </Border>
                                </Border>
                            </Border>
                            <Border   Grid.Column="1"  Visibility="Collapsed"
                                      BorderBrush="DarkGray" BorderThickness=".0,.0,2,2" CornerRadius="11"  >
                                <Border BorderBrush="White" BorderThickness="5" CornerRadius="8" >
                                    <Border BorderBrush="Black" BorderThickness="1.5" CornerRadius="8">
                                        <AB:TAB50TW  
                   
                                         />
                                    </Border>
                                </Border>
                            </Border>
                            <Border   Grid.Column="1"   Visibility="{Binding IsGD,ElementName=TV,Converter={StaticResource nbv}}"
                                  BorderBrush="DarkGray" BorderThickness=".0,.0,2,2" CornerRadius="11"  >
                                <Border BorderBrush="White" BorderThickness="5" CornerRadius="8" >
                                    <Border BorderBrush="Black" BorderThickness="1.5" CornerRadius="8">
                                        <AB:TAB50XS  
                                                 POSTYP="XS "
                                                 P01="{Binding P01,ElementName=cVK05}"
                                                />
                                    </Border>
                                </Border>
                            </Border>
                            <Border  Grid.Column="2" Grid.ColumnSpan="2" Name="cZoneRV"
                BorderBrush="DarkGray" BorderThickness=".0,.0,2,2" CornerRadius="11"  >
                                <Border BorderBrush="White" BorderThickness="5" CornerRadius="8" >
                                    <Border BorderBrush="Black" BorderThickness="1.5" CornerRadius="8">
                                        <AB:TAB50RV   Name="cCS"
                                IsGD="{Binding IsGD,ElementName=TV}"
                                 EXTPROD="{Binding EXTPROD,ElementName=cGD}" 
                     />
                                    </Border>
                                </Border>
                            </Border>
                        </Grid>
                    </Expander>
                </Grid>
            </TabItem>
        <TabItem >
            <TabItem.Header>
                <Button Content="留位模式" Margin="10,0,0,0" Click="AllocationModeCommand"/>
            </TabItem.Header>
        </TabItem>
        <TabItem Header="操作记录">
            <WF:TWFAUF EXAUF="{Binding KEY, ElementName=cVK05}"/>
        </TabItem>
            <!--TabItem Header="分盘管理"> 
                <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="1*" />
                            <RowDefinition Height="1*" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="1*"></ColumnDefinition>
                            <ColumnDefinition Width="2*"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                      
                            <TXT:TXTITX Margin="0,5,0,0" Name="cTxt" 
                                       Grid.Row="0"  Grid.Column="0" 
                                IsAuto="True"
                                IsInfoOneLine="True"
                                TART="ABP"
                                SIND="{Binding TXTISIND,ElementName=cCS}"  
                                />

                    <MB:TGBBS6x  Grid.Row="1"  Grid.Column="0"
                    IsAuto="True"
                       EXAUF="{Binding KEY,ElementName=cCS}"
                       />
                    <ZU:TZUTEI Grid.Row="0" Grid.Column="1"  
                       IsAuto="True"
                       EXAUF="{Binding KEY,ElementName=cCS}"
                       dwAB="{Binding dwAB,ElementName=cCS}"
                       />
                    <MU:TFAB50
                    Grid.Row="1" Grid.Column="1" 
                    />
                </Grid>
             
            </-->
        </TabControl>  
    
</local:DocumentBase>
    
